from grocery.models import Item, Store
from django.contrib import admin

class StoreInline (admin.StackedInline):
    model = Store
    extra = 3

class ItemAdmin (admin.ModelAdmin):
    store = [StoreInline]

admin.site.register(Store)
admin.site.register(Item, ItemAdmin)
